package com.rsstuan.storage.data;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION) 
public class TuanGouChannelData {
	 @PrimaryKey 
	 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
	 private Long id;
	 
	 @Persistent
	 private Long siteId;
	 
	 @Persistent
	 private String city;
	 
	 @Persistent
	 private String title;
	 
	 @Persistent
	 private String link;
	 
	 @Persistent
	 private String rss;
	 
	 @Persistent
	 private String description;
	 
	 @Persistent
	 private Long lastItemId;
	 
	 @Persistent
	 private int totalItem;
	 
	 @Persistent
	 private int totalOrder;
	 
	 @Persistent
	 private int totalClick;
	 
	 @Persistent
	 private int totalScore;
	 
	 @Persistent
	 private boolean active;
	 
	
	 private Long lastUpdateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getRss() {
		return rss;
	}

	public void setRss(String rss) {
		this.rss = rss;
	}

	public Long getLastItemId() {
		return lastItemId;
	}

	public void setLastItemId(Long lastItemId) {
		this.lastItemId = lastItemId;
	}

	public int getTotalItem() {
		return totalItem;
	}

	public void setTotalItem(int totalItem) {
		this.totalItem = totalItem;
	}

	public int getTotalOrder() {
		return totalOrder;
	}

	public void setTotalOrder(int totalOrder) {
		this.totalOrder = totalOrder;
	}

	public int getTotalClick() {
		return totalClick;
	}

	public void setTotalClick(int totalClick) {
		this.totalClick = totalClick;
	}

	public int getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(int totalScore) {
		this.totalScore = totalScore;
	}

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

	public Long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	 
	public Object clone() {
		TuanGouChannelData channel = new TuanGouChannelData();
		channel.setTitle(this.title);
		channel.setCity(this.city);
		channel.setId(this.id);
		channel.setLink(this.link);
		channel.setSiteId(this.siteId);
		channel.setRss(this.rss);
		channel.setDescription(this.description);
		channel.setLastItemId(this.lastItemId);
		channel.setTotalItem(this.totalItem);
		channel.setTotalClick(this.totalClick);
		channel.setTotalOrder(this.totalOrder);
		channel.setTotalScore(this.totalScore);
		channel.setActive(this.active);
		channel.setLastUpdateTime(this.lastUpdateTime);
		return channel;
	}
	 
}
